﻿using System;
using System.Diagnostics;
using System.Web.UI;

namespace XYZ_Inventory
{
    public partial class EventSource : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void Button1_OnClick(object sender, EventArgs e)
        {
            EventLog.CreateEventSource(ExceptionLog.SourceName, ExceptionLog.LogName);
            Button1.Visible = false;
            Response.Write("<script>alert('Event source has been created')</script>");
        }
    }
}